<?php

namespace App\Validate\Web;

use App\Validate\BaseValidate;

class UserUpdateValidate extends BaseValidate
{
    protected $rules = [];// 规则

    protected $message = [];// 自定义消息

    public function __construct($request)
    {
        parent::__construct($request);

        $this->rules = [
            'name' => 'required',
            //'alipay_account' => 'required',
            //'alipay_name' => 'required',
            'receive_order_price' => 'required',
            //'union_name' => 'required',
        ];
        $this->message = [
            'name.required' => '请输入昵称',
            //'alipay_account.required' => '请输入提现支付宝账户',
            //'alipay_name.required' => '请输入提现支付宝姓名',
            'receive_order_price.required' => '请输入接单金额',
            //'union_name.required' => '请输入联盟名称',
        ];
    }

    protected function customValidate()
    {

    }
}
